package com.ttc.group2.videochat.utils;

import android.content.Intent;

import com.quickblox.users.model.QBUser;

public class IntentUtils {

	public static Intent putData(Intent intent, QBUser qbUser) {
		intent.putExtra(Const.USER_ID, qbUser.getId());
		return intent;
	}
	
	public static QBUser getData(Intent intent, QBUser qbUser) {
		if (qbUser == null) {
			qbUser = new QBUser();
		}
		qbUser.setId(intent.getIntExtra(Const.USER_ID, -1));
		return qbUser;
	}
}
